package com.dliu.javadesign.create.abstractfactory;

/**
 * 颜色
 * @author yanglei
 * date 2021/3/29 9:45
 */
public interface Color {
    void getColor();
}

class Red implements Color {
    @Override
    public void getColor() {
        System.out.println("红色");
    }
}

class Black implements Color {
    @Override
    public void getColor() {
        System.out.println("黑色");
    }
}
